<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="C" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
 <%
        String path = request.getRequestURI();
        String basePath = request.getScheme() + "://"
                + request.getServerName() + ":" + request.getServerPort()
                + path;
    %> 
    <base href="<%=basePath%>">
<link rel="stylesheet" href="bootstrap-3.4.1-dist/css/bootstrap.min.css">
<link rel="stylesheet" href="./bootstrap-3.4.1-dist/VolunteerCss/head.css">
<link rel="stylesheet" href="./bootstrap-3.4.1-dist/VolunteerCss/Forum.css">
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<title>志愿者招募用户--志愿论坛首页</title>
    <style type="text/css">
		#div1{
			/* width: 1050px; */
			height: 53px; 
			background-color: #c2b6df;
			margin: 0 auto;
			/* border: 20px solid #e9eced; */
		}
		h3{
			text-align: center;
			/* font-size: 20px */
		}
		.p1{text-indent: 2em;font-size: 30px;}
		.p2{text-align:left;color:#d34949;}
        p.thicker {font-weight:900;font-size: 30px;}
        /* p.stronger {font-weight:900;font-size: 20px;} */
        p.stronger {font-weight:900;font-size: 25px;text-align:left;}
        p.position{text-align:left;font-size: 17px}
		#div3{text-align: center;font-size: 20px}
        #div4{text-align:center;}
        #myCarousel{
            width:100%;
        /* margin-left:35%; */
        height:100%;}
	</style>
</head>
<body>
<!-- <div id="div2"> -->
				<article>
				  <header><div class="header_con">
                    <div class="header">
                        <div class="welcome">欢迎来到志愿者招募平台!</div>
                        <div class="user_login">
                            <a href="../Login&Register.jsp">退出</a>
                            <!-- <span>|</span>
                            <a href="Login&Register.html">注册</a> -->
                        </div>
                    </div>
                </div><br>

                        <img alt="Brand" src="../img/志愿者图标.png"  width="50px" height="50px" style="float:left"><br>
                         <p class="thicker">"最美"抗疫志愿者招募平台</p1>  
                        </header>
               </article>
             
                <div class="navbar_con">
                    <div class="navbar clearfix">
                        <ul class="navlist fl">
                            <li><a href="${pageContext.request.contextPath}/PersonalServlet">个人中心</a></li>
                            <div class="subnav_con fl">
                                <h1>志愿论坛<i></i></h1>
                            </div>
                            <li><a href="${pageContext.request.contextPath}/ElegantServlet">志愿风采</a></li>
                            <li><a href="${pageContext.request.contextPath}/RecruitServlet">志愿者招募</a></li>
                            <li><a href="${pageContext.request.contextPath}/HomeServlet">首页</a></li>
                        </ul>
                    </div>
                </div><br>
                
               <!--论坛div-->
        
        <!-- <button type="button" class="btn btn-default" style="margin-left:160px">我的论坛</button>
        <button type="button" class="btn btn-default">发帖</button> -->

        <div class="guest_card fr">
            <a href="${pageContext.request.contextPath}/ForumPersonalServlet" class="card_name fl">我的论坛</a>
            <div class="goods_count fl"><span class="glyphicon glyphicon-home" aria-hidden="true"></span></div>
        </div><br><br>

		<div id="discuss">
			<!--页签菜单栏-->
			<br><div class="mt">
				<a href="#" class="current">晒单帖</a>
				<a href="${pageContext.request.contextPath}/ForumQuestionServlet">问答帖</a>
				<!-- <a href="#">讨论帖</a> -->
			</div>
			<!--讨论内容-->
			<div id="discuss-content">
				<!--表格内容-->
				<table id="discuss-datas">
					<!--标题栏-->
					<tr class="header">
						<td class="col1">主题</td>
						<td>浏览/回复</td>
						<td>作者</td>
						<td>时间</td>
					</tr>
					<!--内容栏-->
					<tbody>
					 <C:forEach items="${forum}" var="forum">	
						<tr>
							<td class="col1">
								<i class="sheng"></i>
								<a href="#">${forum.topic}</a>
							</td>
							<td>${forum.look}/${forum.response}</td>
							<td><a href=""><span class="glyphicon glyphicon-user" aria-hidden="true">${forum.realname}</span></a></td>
							<td>${forum.time}</td>
						</tr>
					</C:forEach>
					</tbody>
				</table><br>
				<!--显示的拓展内容-->
				<div id="discuss-total">
					<div class="all_discuss">
						共900个话题
						<a href="#">浏览全部话题>>></a>
					</div>
					<div class="new_discuss" align="right">
						有问题要与其他用户讨论
						<a href="#" data-toggle="modal" data-target="#myModal">[发表帖子]</a>
						<!-- 按钮触发模态框 -->
					</div>

<!-- 模态框（Modal） -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" 
						aria-hidden="true">×
				</button>
				<h4 class="modal-title" id="myModalLabel">
					请选择您要发表的帖子
				</h4>
			</div>
			<div class="modal-body" style="text-align:center">
				<a href="UserForumEditor.jsp"><button type="button" class="btn btn-info" >晒单帖</button></a>
				<a href="ForumQuestionEditor.jsp"><button type="button" class="btn btn-info" style="margin-left:120px">问答帖</button></a>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" 
						data-dismiss="modal">取消
				</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal-dialog -->
    </div><!-- /.modal -->
					</div>
				</div>
			</div>		
</body>
</html>